package com.siyu.basedata.modelparam.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.siyu.basedata.modelparam.domain.ModelParam;
import com.siyu.basedata.modelparam.mapper.ModelParamMapper;
import com.siyu.basedata.modelparam.service.IModelParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * xaj模型参数Service业务层处理
 *
 * @author hrhy
 * @date 2024-06-15
 */
@Service
public class ModelParamServiceImpl extends ServiceImpl<ModelParamMapper, ModelParam> implements IModelParamService {
    @Autowired
    private ModelParamMapper modelParamMapper;

    /**
     * 查询xaj模型参数
     *
     * @param id xaj模型参数主键
     * @return xaj模型参数
     */
    @Override
    public ModelParam selectModelParamById(String id) {
        return modelParamMapper.selectModelParamById(id);
    }

    /**
     * 查询xaj模型参数列表
     *
     * @param modelParam xaj模型参数
     * @return xaj模型参数
     */
    @Override
    public List<ModelParam> selectModelParamList(ModelParam modelParam) {
        return modelParamMapper.selectModelParamList(modelParam);
    }

    /**
     * 新增xaj模型参数
     *
     * @param modelParam xaj模型参数
     * @return 结果
     */
    @Override
    public int insertModelParam(ModelParam modelParam) {
        return modelParamMapper.insertModelParam(modelParam);
    }

    /**
     * 修改xaj模型参数
     *
     * @param modelParam xaj模型参数
     * @return 结果
     */
    @Override
    public int updateModelParam(ModelParam modelParam) {
        return modelParamMapper.updateModelParam(modelParam);
    }

    /**
     * 批量删除xaj模型参数
     *
     * @param ids 需要删除的xaj模型参数主键
     * @return 结果
     */
    @Override
    public int deleteModelParamByIds(String[] ids) {
        return modelParamMapper.deleteModelParamByIds(ids);
    }

    /**
     * 删除xaj模型参数信息
     *
     * @param id xaj模型参数主键
     * @return 结果
     */
    @Override
    public int deleteModelParamById(String id) {
        return modelParamMapper.deleteModelParamById(id);
    }
}


